package com.daxt.model.service.base.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.daxt.model.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "字典", description = "字典")
@TableName("base_dic")
public class Dic extends BaseEntity implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String dicCode;
	private String dicValue;
	private String dicType;
	private String tenantId;
	private String parentType;
	private int sort;
	
	@TableField(exist = false)
	private List<Dic> children=new ArrayList<Dic>();
	//@TableField(exist = false)
	//private Boolean hasChildren=true;

}
